package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.ProductSkuKey;
import com.ytjj.qmyx.admin.model.response.goods.ProductSkuKeyResponse;
import com.ytjj.qmyx.admin.model.response.goods.ProductSpecResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductSkuKeyDao {

    Integer selectCount(Integer id);

    ProductSkuKey selectByPidAndKid(@Param("id") Integer id, @Param("attributeKeyId") Integer attributeKeyId);

    int copyToProductSkuKey(@Param("list") List<ProductSkuKeyResponse> list);

    int delProductSkuKeys(@Param("list") List<ProductSkuKeyResponse> list);

    int deleteProductSkuKeysByProductId(Integer productId);

    int delProductSkuKeysByPid(Integer productId);

    int updateBySupEntity(ProductSkuKeyResponse productSkuKeyResponse);

    int insertByEntity(ProductSkuKeyResponse productSkuKeyResponse);

    List<ProductSkuKey> selectBySupId(Integer supplySkuKeyId);

    List<ProductSkuKey> selectByPid(Integer pid);
}
